#pragma once

class MapBrick
{
public:
	MapBrick();
	MapBrick(
		int type, 
		const vector3di& center,
		int dir, 
		bool towerable,
		bool walkable,
		int nb0,
		int nb1,
		int nb2,
		int nb3
		);

	int DistanceTo (const MapBrick& other) const;
	int GetNeighborIdx(int d) const;
	bool IsWalkable() const;
	const vector3di& Center() const;
	int Type() const;

private:
	int			_type;
	vector3di	_center;
	int			_dir;
	bool		_towerable;
	bool		_walkable;
	int			_neighbor[4];
};
